package com.xyoto.takeawayBusiness.enums;

/**
 * @Description
 * @Author: TingFeng
 * @CreateTime: 2022/4/26  19:39
 */
public enum MenuEnum implements Code{
    /**
     * 菜单code
     */
    MENU_TYPE_NULL(3001,"菜单分类不能为空"),
    MENU_ID_ERROR(3002,"菜单分类id异常"),
    MENU_ADD_ERROR(3003,"菜单分类添加失败"),
    MeNU_UPDATE_ERROR(3003,"菜单分类修改失败"),
    MENU_DELETE_ERROR(3004,"菜单分类删除失败");


    private int code;
    private String msg;
    MenuEnum(int code, String msg){
        this.code = code;
        this.msg = msg;
    }

    @Override
    public int code() {
        return this.code;
    }

    @Override
    public String msg() {
        return this.msg;
    }
}
